let fn = (req,res,next)=>{
    if(req.query.id === '666' || req.url === '/'){
        next()
    }else{
        res.redirect('/')
    }
};

module.exports = fn;